<!--
  Copyright 2017 Huawei Technologies Co., Ltd.
 
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
 
      http://www.apache.org/licenses/LICENSE-2.0
 
  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<md-dialog aria-label="Delete Service dialog" flex="30" class="md-red-theme">
    <form ng-cloak>
        <md-toolbar class="md-hue-3 dialogHeader">
            <div class="md-toolbar-tools">
                <h2>{{'module.marketplace.serviceDelete.title' | translate}}</h2>
                <span flex></span>
                <button class="btnTransparency" ng-click="vm.cancel()">
                    <i class="fa fa-close fa-sm" aria-hidden="true"></i>
                </button>
            </div>
        </md-toolbar>

        <md-dialog-content>
            <div class="md-dialog-content">
                    <div class="fullWidth center">
                        <div class="row">
                            <div class="col-xs-2 col-sm-2 col-md-1 col-lg-1 deleteIconSize glyphicon glyphicon-warning-sign icon_warning"></div>
                            <div class="msg col-xs-10 col-sm-10 col-md-11 col-lg-11" style="text-align:left;vertical-align: middle;">{{'module.marketplace.serviceDelete.confirmationMesaage' | translate}} "{{ vm.serviceDetails.name }}"?</div>
                        </div>
                    </div>
        </md-dialog-content>

        <md-dialog-actions layout="row" class="row deleteAction">

            <button ng-click="vm.answer('Deleted')" class="btn btnDefault btnSpacing deleteBtn">
                {{'common.actions.yes' | translate}}
            </button>
            <button ng-click="vm.cancel()" class="btn btnDefault deleteBtn">
                {{'common.actions.no' | translate}}
            </button>
        </md-dialog-actions>
    </form>
</md-dialog>